package com.example.layoutandlistview;

import java.util.ArrayList;

public class AvalibleFileDownload {
	ArrayList<FileDownload> files = new ArrayList<FileDownload>();
	static AvalibleFileDownload avalibleFileDownload;
	
	public static AvalibleFileDownload getAvalibleFileDownloadObject(){
		if(avalibleFileDownload == null){
			avalibleFileDownload = new AvalibleFileDownload();
		}
		return avalibleFileDownload;
	}
	
	public static ArrayList<FileDownload> getFileDownloadListStatic(){
		return getAvalibleFileDownloadObject().getFileDownloadList();
	}
	
	public ArrayList<FileDownload> getFileDownloadList(){
		return files;
	}
	
	public void setFileDownloadList(ArrayList<FileDownload> files){
		this.files = files;
	}
}
